package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.excelEntity.WillingnessSurveyExcel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WillingnessSurveyMapper {
    @Select({"<script>",
                "SELECT ${field} FROM willingness_survey ${ew.customSqlSegment} ",
            "</script>"})
    public abstract IPage<WillingnessSurveyExcel> getWillingnessSurvey(IPage<?> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper, @Param("field") String field);
}
